<template>
  <div>
    <!-- 9.封装并全局注册顶部navigator组件，左侧icon点击返回上一页，中间文字传入组件 -->
    <van-nav-bar
      :title="title"
      left-arrow
      @click-left="() => $router.back()"
    />
  </div>
</template>
<script setup>
import { defineProps } from "vue";
const props = defineProps({
  title: {
    type: String,
  },
});
</script>
<style scoped lang='scss'>
</style>